import request from '@/utils/request'

    //getLecturerPageList: query => post('/api/admin/lecturer/page', query),
    export function getLecturerPageList(data) {
        return request({
          url: '/api/admin/lecturer/page',
          method: 'post',
          data: data
        })
      }
    //createLecturer: query => post('/api/admin/lecturer/edit', query),
    export function createLecturer(data) {
        return request({
          url: '/api/admin/lecturer/edit',
          method: 'post',
          data: data
        })
      }
   // deleteLecturer: id => post('/api/admin/lecturer/delete/' + id),
    export function deleteLecturer(id) {
        return request({
          url: '/api/admin/lecturer/delete/' + id,
          method: 'post'
        })
      }
    //changeStatus: id => post('/api/admin/lecturer/changeStatus/' + id),
    export function changeStatus(id) {
        return request({
          url: '/api/admin/lecturer/changeStatus/' + id,
          method: 'post'
        })
      }
    //编辑接口
    //selectLecturer: id => post('/api/admin/lecturer/select/' + id),
    export function selectLecturer(id) {
        return request({
          url: '/api/admin/lecturer/select/' + id,
          method: 'post'
        })
      }
    //头像图片上传
    //coverupLoad: query => post('/api/admin/course/courseCoverUpload', query),
    export function coverupLoad(data) {
        return request({
          url: '/api/admin/course/courseCoverUpload',
          method: 'post',
          data: data
        })
      }
